﻿@page "/messages"
@inject IStringLocalizer<Messages> Localizer

<h3>@Localizer["MessagesTitle"]</h3>
<h4>@Localizer["MessagesDescription"]</h4>

<p>@Localizer["MessagesIntro"]</p>

<p class="code-label">@((MarkupString)Localizer["MessagesTips1"].Value)</p>
<Pre>@@inject MessageService MessageService</Pre>
<Pre>[Inject]
[NotNull]
private MessageService? MessageService { get; set; }
</Pre>
<p class="code-label">@((MarkupString)Localizer["MessagesTips2"].Value)</p>
<Pre>await MessageService.Show(new MessageOption()
{
    Content = "@Localizer["MessagesTips3"]"
});</Pre>

<DemoBlock Title="@Localizer["MessagesNormalTitle"]"
           Introduction="@Localizer["MessagesNormalIntro"]"
           Name="Normal"
           Demo="typeof(Demos.Messages.MessagesNormal)">
</DemoBlock>

<DemoBlock Title="@Localizer["MessagesIconTitle"]"
           Introduction="@Localizer["MessagesIconiNTRO"]"
           Name="Icon"
           Demo="typeof(Demos.Messages.MessagesIcon)">
</DemoBlock>

<DemoBlock Title="@Localizer["MessagesCloseButtonTitle"]"
           Introduction="@Localizer["MessagesCloseButtonIntro"]"
           Name="CloseButton"
           Demo="typeof(Demos.Messages.MessagesCloseButton)">
</DemoBlock>

<DemoBlock Title="@Localizer["MessagesLeftBoardTitle"]"
           Introduction="@Localizer["MessagesLeftBoardIntro"]"
           Name="LeftBoard"
           Demo="typeof(Demos.Messages.MessagesLeftBoard)">
</DemoBlock>

<DemoBlock Title="@Localizer["MessagesDifferentColorTitle"]"
           Introduction="@Localizer["MessagesDifferentColorIntro"]"
           Name="DifferentColor"
           Demo="typeof(Demos.Messages.MessagesDifferentColor)">
</DemoBlock>

<DemoBlock Title="@Localizer["MessagesPositionTitle"]"
           Introduction="@Localizer["MessagesPositionIntro"]"
           Name="Position"
           Demo="typeof(Demos.Messages.MessagesPosition)">
</DemoBlock>

<AttributeTable Items="@GetAttributes()" />

<AttributeTable Title="@Localizer["MessagesItem"]" Items="@GetMessageItemAttributes()" />
